import { createApp } from "vue";
import App from "./App.vue";
import router from "./router";

// import elementplus from "element-plus";
// import "element-plus/dist/index.css";
import "normalize.css";
import "../src/assets/css/index.less";
//全局属性
import {globalRegister} from '@/global/index'
import store, {setupStore} from './store'
//全局注册图标
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
//messageBox 样式
// import 'element-plus/theme-chalk/src/message.scss'
import 'element-plus/theme-chalk/el-message-box.css'
// messagebox 样式
import 'element-plus/theme-chalk/el-message.css'

setupStore()
const app = createApp(App)

app.use(store)
app.use(router)
app.use(globalRegister)
app.mount("#app");

for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
  }
